Optimal. Leaf size=235 \[ \frac{x \left (a+b x^3\right )}{b \sqrt{a^2+2 a b x^3+b^2 x^6}}-\frac{\sqrt [3]{a} \left (a+b x^3\right ) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 b^{4/3} \sqrt{a^2+2 a b x^3+b^2 x^6}}+\frac{\sqrt [3]{a} \left (a+b x^3\right ) \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{6 b^{4/3} \sqrt{a^2+2 a b x^3+b^2 x^6}}+\frac{\sqrt [3]{a} \left (a+b x^3\right ) \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt{3} b^{4/3} \sqrt{a^2+2 a b x^3+b^2 x^6}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.113682, antiderivative size = 235, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 8, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.308, Rules used = {1355, 321, 200, 31, 634, 617, 204, 628} \[ \frac{x \left (a+b x^3\right )}{b \sqrt{a^2+2 a b x^3+b^2 x^6}}-\frac{\sqrt [3]{a} \left (a+b x^3\right ) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 b^{4/3} \sqrt{a^2+2 a b x^3+b^2 x^6}}+\frac{\sqrt [3]{a} \left (a+b x^3\right ) \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{6 b^{4/3} \sqrt{a^2+2 a b x^3+b^2 x^6}}+\frac{\sqrt [3]{a} \left (a+b x^3\right ) \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt{3} b^{4/3} \sqrt{a^2+2 a b x^3+b^2 x^6}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1355
Rule 321
Rule 200
Rule 31
Rule 634
Rule 617
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{x^3}{\sqrt{a^2+2 a b x^3+b^2 x^6}} \, dx &=\frac{\left (a b+b^2 x^3\right ) \int \frac{x^3}{a b+b^2 x^3} \, dx}{\sqrt{a^2+2 a b x^3+b^2 x^6}}\\ &=\frac{x \left (a+b x^3\right )}{b \sqrt{a^2+2 a b x^3+b^2 x^6}}-\frac{\left (a \left (a b+b^2 x^3\right )\right ) \int \frac{1}{a b+b^2 x^3} \, dx}{b \sqrt{a^2+2 a b x^3+b^2 x^6}}\\ &=\frac{x \left (a+b x^3\right )}{b \sqrt{a^2+2 a b x^3+b^2 x^6}}-\frac{\left (\sqrt [3]{a} \left (a b+b^2 x^3\right )\right ) \int \frac{1}{\sqrt [3]{a} \sqrt [3]{b}+b^{2/3} x} \, dx}{3 b^{5/3} \sqrt{a^2+2 a b x^3+b^2 x^6}}-\frac{\left (\sqrt [3]{a} \left (a b+b^2 x^3\right )\right ) \int \frac{2 \sqrt [3]{a} \sqrt [3]{b}-b^{2/3} x}{a^{2/3} b^{2/3}-\sqrt [3]{a} b x+b^{4/3} x^2} \, dx}{3 b^{5/3} \sqrt{a^2+2 a b x^3+b^2 x^6}}\\ &=\frac{x \left (a+b x^3\right )}{b \sqrt{a^2+2 a b x^3+b^2 x^6}}-\frac{\sqrt [3]{a} \left (a+b x^3\right ) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 b^{4/3} \sqrt{a^2+2 a b x^3+b^2 x^6}}+\frac{\left (\sqrt [3]{a} \left (a b+b^2 x^3\right )\right ) \int \frac{-\sqrt [3]{a} b+2 b^{4/3} x}{a^{2/3} b^{2/3}-\sqrt [3]{a} b x+b^{4/3} x^2} \, dx}{6 b^{7/3} \sqrt{a^2+2 a b x^3+b^2 x^6}}-\frac{\left (a^{2/3} \left (a b+b^2 x^3\right )\right ) \int \frac{1}{a^{2/3} b^{2/3}-\sqrt [3]{a} b x+b^{4/3} x^2} \, dx}{2 b^{4/3} \sqrt{a^2+2 a b x^3+b^2 x^6}}\\ &=\frac{x \left (a+b x^3\right )}{b \sqrt{a^2+2 a b x^3+b^2 x^6}}-\frac{\sqrt [3]{a} \left (a+b x^3\right ) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 b^{4/3} \sqrt{a^2+2 a b x^3+b^2 x^6}}+\frac{\sqrt [3]{a} \left (a+b x^3\right ) \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{6 b^{4/3} \sqrt{a^2+2 a b x^3+b^2 x^6}}-\frac{\left (\sqrt [3]{a} \left (a b+b^2 x^3\right )\right ) \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1-\frac{2 \sqrt [3]{b} x}{\sqrt [3]{a}}\right )}{b^{7/3} \sqrt{a^2+2 a b x^3+b^2 x^6}}\\ &=\frac{x \left (a+b x^3\right )}{b \sqrt{a^2+2 a b x^3+b^2 x^6}}+\frac{\sqrt [3]{a} \left (a+b x^3\right ) \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt{3} b^{4/3} \sqrt{a^2+2 a b x^3+b^2 x^6}}-\frac{\sqrt [3]{a} \left (a+b x^3\right ) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 b^{4/3} \sqrt{a^2+2 a b x^3+b^2 x^6}}+\frac{\sqrt [3]{a} \left (a+b x^3\right ) \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{6 b^{4/3} \sqrt{a^2+2 a b x^3+b^2 x^6}}\\ \end{align*}
Mathematica [A] time = 0.0312101, size = 128, normalized size = 0.54 \[ \frac{\left (a+b x^3\right ) \left (\sqrt [3]{a} \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )-2 \sqrt [3]{a} \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )+2 \sqrt{3} \sqrt [3]{a} \tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{b} x}{\sqrt [3]{a}}}{\sqrt{3}}\right )+6 \sqrt [3]{b} x\right )}{6 b^{4/3} \sqrt{\left (a+b x^3\right )^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.007, size = 110, normalized size = 0.5 \begin{align*}{\frac{b{x}^{3}+a}{6\,{b}^{2}} \left ( 6\,xb \left ({\frac{a}{b}} \right ) ^{2/3}+2\,\arctan \left ( 1/3\,{\sqrt{3} \left ( -2\,x+\sqrt [3]{{\frac{a}{b}}} \right ){\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}} \right ) \sqrt{3}a-2\,\ln \left ( x+\sqrt [3]{{\frac{a}{b}}} \right ) a+\ln \left ({x}^{2}-\sqrt [3]{{\frac{a}{b}}}x+ \left ({\frac{a}{b}} \right ) ^{{\frac{2}{3}}} \right ) a \right ){\frac{1}{\sqrt{ \left ( b{x}^{3}+a \right ) ^{2}}}} \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.79736, size = 254, normalized size = 1.08 \begin{align*} \frac{2 \, \sqrt{3} \left (-\frac{a}{b}\right )^{\frac{1}{3}} \arctan \left (\frac{2 \, \sqrt{3} b x \left (-\frac{a}{b}\right )^{\frac{2}{3}} - \sqrt{3} a}{3 \, a}\right ) - \left (-\frac{a}{b}\right )^{\frac{1}{3}} \log \left (x^{2} + x \left (-\frac{a}{b}\right )^{\frac{1}{3}} + \left (-\frac{a}{b}\right )^{\frac{2}{3}}\right ) + 2 \, \left (-\frac{a}{b}\right )^{\frac{1}{3}} \log \left (x - \left (-\frac{a}{b}\right )^{\frac{1}{3}}\right ) + 6 \, x}{6 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.354967, size = 22, normalized size = 0.09 \begin{align*} \operatorname{RootSum}{\left (27 t^{3} b^{4} + a, \left ( t \mapsto t \log{\left (- 3 t b + x \right )} \right )\right )} + \frac{x}{b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.10604, size = 193, normalized size = 0.82 \begin{align*} \frac{\left (-\frac{a}{b}\right )^{\frac{1}{3}} \log \left ({\left | x - \left (-\frac{a}{b}\right )^{\frac{1}{3}} \right |}\right ) \mathrm{sgn}\left (b x^{3} + a\right )}{3 \, b} + \frac{x \mathrm{sgn}\left (b x^{3} + a\right )}{b} - \frac{\sqrt{3} \left (-a b^{2}\right )^{\frac{1}{3}} \arctan \left (\frac{\sqrt{3}{\left (2 \, x + \left (-\frac{a}{b}\right )^{\frac{1}{3}}\right )}}{3 \, \left (-\frac{a}{b}\right )^{\frac{1}{3}}}\right ) \mathrm{sgn}\left (b x^{3} + a\right )}{3 \, b^{2}} - \frac{\left (-a b^{2}\right )^{\frac{1}{3}} \log \left (x^{2} + x \left (-\frac{a}{b}\right )^{\frac{1}{3}} + \left (-\frac{a}{b}\right )^{\frac{2}{3}}\right ) \mathrm{sgn}\left (b x^{3} + a\right )}{6 \, b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]